<#-- TODO 改为实际使用的包名 -->
package com.chinamcom.framework.admin.common.model;

import javax.persistence.*;

/**
 * ${comment!""}
 * @author fattiger.xiaoyang
 * @date   ${.now?string("yyyy/MM/dd")}
 */
@Entity
@Table(name = "${tableName}")
public class ${className} {
    <#list columns as column>
    <#assign autograph = "private " + column.propertyType + " " + column.propertyName + " ;">
    <#if column.propertyName != "id">
    ${autograph}<#if (column.columnComment?? && column.columnComment?length > 0)><#if (autograph?length < 4)>${"\t\t\t\t\t\t\t\t\t\t"}<#elseif (autograph?length < 8)>${"\t\t\t\t\t\t\t\t\t"}<#elseif (autograph?length < 12)>${"\t\t\t\t\t\t\t\t"}<#elseif (autograph?length < 16)>${"\t\t\t\t\t\t\t"}<#elseif (autograph?length < 20)>${"\t\t\t\t\t\t"}<#elseif (autograph?length < 24)>${"\t\t\t\t\t"}<#elseif (autograph?length < 28)>${"\t\t\t\t"}<#elseif (autograph?length < 32)>${"\t\t\t"}<#elseif (autograph?length < 36)>${"\t\t"}<#else>${"\t"}</#if>// ${column.columnComment}</#if>
    </#if>
    <#if column.propertyName == "id">
    @Id
	@GeneratedValue
    ${autograph}<#if (column.columnComment?? && column.columnComment?length > 0)><#if (autograph?length < 4)>${"\t\t\t\t\t\t\t\t\t\t"}<#elseif (autograph?length < 8)>${"\t\t\t\t\t\t\t\t\t"}<#elseif (autograph?length < 12)>${"\t\t\t\t\t\t\t\t"}<#elseif (autograph?length < 16)>${"\t\t\t\t\t\t\t"}<#elseif (autograph?length < 20)>${"\t\t\t\t\t\t"}<#elseif (autograph?length < 24)>${"\t\t\t\t\t"}<#elseif (autograph?length < 28)>${"\t\t\t\t"}<#elseif (autograph?length < 32)>${"\t\t\t"}<#elseif (autograph?length < 36)>${"\t\t"}<#else>${"\t"}</#if>// ${column.columnComment}</#if>
    </#if>
    </#list>
    	
    <#list columns as column>
    <#if column.propertyType == "java.util.Date">@Temporal(TemporalType<#if column.columnType == "DATE" || column.columnType == "date">.DATE<#else>.TIMESTAMP</#if>)</#if>
    public ${column.propertyType} get${column.propertyName?cap_first} (){
        return this.${column.propertyName} ;
    }
    public void set${column.propertyName?cap_first} (${column.propertyType} ${column.propertyName}){
        this.${column.propertyName} = ${column.propertyName} ;
    }
    </#list>	
}